package com.example.springbootprinciple.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;
@Component
public class HelloCommandLineRunner implements CommandLineRunner {

    Logger logger = LoggerFactory.getLogger(getClass());


    @Override
    public void run(String... args) throws Exception {
        logger.info("HelloCommandLineRunner------run\t"+ Arrays.toString(args));
    }
}
